package com.imooc.eo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * 构建es索引
 * @author liansen
 * @create 06-14-17:37
 */
@Data
@Document(indexName = "stu")
public class Stu {

    @Id
    private Long Id;

    @Field
    private String name;

    @Field
    private Integer age;

    @Field
    private float money;

    @Field
    private String description;

}
